package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbLog;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbLog is a Querydsl query type for ETbLog
 */
@Label("日志表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbLog extends RelationalPathBase<ETbLog> {

    private static final long serialVersionUID = 1694298861;

    public static final QTbLog tbLog = new QTbLog("tb_log");

    public class PrimaryKeys {

        public final PrimaryKey<ETbLog> primary = createPrimaryKey(id);

    }

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath operationContent = createString("operationContent");

    public final DateTimePath<org.joda.time.DateTime> operationTime = createDateTime("operationTime", org.joda.time.DateTime.class);

    public final StringPath operator = createString("operator");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QTbLog(String variable) {
        super(ETbLog.class, forVariable(variable), "null", "tb_log");
        addMetadata();
    }

    public QTbLog(String variable, String schema, String table) {
        super(ETbLog.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbLog(Path<? extends ETbLog> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_log");
        addMetadata();
    }

    public QTbLog(PathMetadata<?> metadata) {
        super(ETbLog.class, metadata, "null", "tb_log");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(5).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(operationContent, ColumnMetadata.named("operationContent").withIndex(3).ofType(Types.VARCHAR).withSize(100));
        addMetadata(operationTime, ColumnMetadata.named("operationTime").withIndex(4).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(operator, ColumnMetadata.named("operator").withIndex(2).ofType(Types.VARCHAR).withSize(45));
    }

}

